var fs = require('fs');
var multer  = require('multer')
var express = require('express');
var router = express.Router();
var user = require('../controllers/memberController');
const dbconfig = require('../util/dbconfig')
/* GET users listing. */
router.post('/sendCode', user.sendCode);
router.post('/codePhoneLogin', user.codePhoneLogin);
var upload = multer({ dest: './public/uploads/' }).single('file');
router.post('/editUserImg', upload, user.editUserImg)
// var moreupload = multer({ dest: './public/uploads/' }).array('file',5);
// router.post('/uploadMoreImage', moreupload, user.uploadMoreImage)







module.exports = router;
